package org.brain.pojos;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Commentinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "COMMENTINFO", schema = "PUBLIC", catalog = "PUBLIC")
public class Commentinfo implements java.io.Serializable {

	// Fields

	private Integer commentid;
	private String commentcontent;
	private String commentuser;
	private Date commenttime;
	private Integer comdocumentid;

	// Constructors

	/** default constructor */
	public Commentinfo() {
	}

	/** full constructor */
	public Commentinfo(String commentcontent, String commentuser,
			Timestamp commenttime, Integer comdocumentid) {
		this.commentcontent = commentcontent;
		this.commentuser = commentuser;
		this.commenttime = commenttime;
		this.comdocumentid = comdocumentid;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "COMMENTID", unique = true, nullable = false)
	public Integer getCommentid() {
		return this.commentid;
	}

	public void setCommentid(Integer commentid) {
		this.commentid = commentid;
	}

	@Column(name = "COMMENTCONTENT", length = 500)
	public String getCommentcontent() {
		return this.commentcontent;
	}

	public void setCommentcontent(String commentcontent) {
		this.commentcontent = commentcontent;
	}

	@Column(name = "COMMENTUSER", length = 30)
	public String getCommentuser() {
		return this.commentuser;
	}

	public void setCommentuser(String commentuser) {
		this.commentuser = commentuser;
	}

	@Column(name = "COMMENTTIME", length = 26)
	public Date getCommenttime() {
		return this.commenttime;
	}

	public void setCommenttime(Date commenttime) {
		this.commenttime = commenttime;
	}

	@Column(name = "COMDOCUMENTID")
	public Integer getComdocumentid() {
		return this.comdocumentid;
	}

	public void setComdocumentid(Integer comdocumentid) {
		this.comdocumentid = comdocumentid;
	}

}